<!--
 * @Author: your name
 * @Date: 2022-01-13 09:34:04
 * @LastEditTime: 2022-01-13 09:53:47
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \0113\列表.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            border: 0 none;
        }
        .wrap{
            width: 1200px;
            overflow: hidden;
            margin: 0 auto;
            border: 1px solid black;
        }
        ul{
            width: 1250px;
            height: 200px;
            background: violet;
        }
        ul li{
            width: 200px;
            height: 200px;
            background: white;
            list-style: none;
            float: left;
            margin-right: 50px;
        }
        .clearfix:after{
            content: "";
            display: block;
            clear: both;
        }
        .out{
            width: 200px;
            height: 200px;
            border: 2px dotted blueviolet;
            /*溢出隐藏:可以消除上面浮动带来的影响*/
            overflow: hidden;
        }
        .inner{
            width: 300px;
            height: 200px;
            background: turquoise;
        }
    </style>
</head>
<body>
    <div class="wrap">
        <ul class="clearfix">
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
    </div>
    <div class="out">
        <div class="inner"></div>
    </div>
</body>
</html>